li = [1,2,3,4,5,1,2,3]
new_li = []
for i in li:
    if i not in new_li:
        new_li.append(i)
print(new_li)